package com.kunbo.cn.util;

public class NumberCovertChinese {
	public static String NumberToCharacters(String carNumber) {
        String newCarNumber = "";
		for(int i = 0; i < carNumber.length(); i++){
			String subStr = carNumber.substring(i, i+1);
			if("0".equals(subStr)) {
				newCarNumber+="零";
		    }else if("1".equals(subStr)) {
		    	newCarNumber+="一";
		    }else if("2".equals(subStr)) {
		    	newCarNumber+="二";
		    }else if("3".equals(subStr)) {
		    	newCarNumber+="三";
		    }else if("4".equals(subStr)) {
		    	newCarNumber+="四";
		    }else if("5".equals(subStr)) {
		    	newCarNumber+="五";
		    }else if("6".equals(subStr)) {
		    	newCarNumber+="六";
		    }else if("7".equals(subStr)) {
		    	newCarNumber+="七";
		    }else if("8".equals(subStr)) {
		    	newCarNumber+="八";
		    }else if("9".equals(subStr)) {
		    	newCarNumber+="九";
		    }else {
		    	newCarNumber+=subStr;
		    }
 
		}
		return newCarNumber; 


	}
	
	public static void main(String[] args) {
		System.out.println(NumberToCharacters("晋J3356012"));
	}
}
